package pk.nak.data;

import java.io.Serializable;
import java.util.ArrayList;

@SuppressWarnings("serial")
public class EatOutMenu implements Serializable {
	private ArrayList<EatOutMenuItem> _items;
	public EatOutMenu(){
		this._items = new ArrayList<EatOutMenuItem>(); 
	}
	
	public void addItem(EatOutMenuItem pItem){
		this._items.add(pItem);
	}
	
	public EatOutMenuItem getItemAt(int index){
		if ( index >= 0 && index < this._items.size()){
			return this._items.get(index);
		}else{
			return null;
		}
	}
	
	public ArrayList<EatOutMenuItem> getItems(){
		return this._items;
	}
	
	public void deleteItemAt(int index){
		this._items.remove(index);
	}
	
	public void deleteItem(EatOutMenuItem item){
		this._items.remove(item);
	}
}
